at funtion gerarRelatorio i swap the qDeleteAll on line down(original position). and it worked.
qDebug()<<"Documentos processados para a Tabela de Relatorio";
acessodb::setDataUltimoRelatorio(idEmpresa,idCliente);
qDeleteAll(listaDocumentos);
listaDocumentos.clear();
delete modelo;
return true;
I now will upload to my test server, and see what happens.
i doesn't care any more about what is causing the problem, i just hope that is solved.